package com.wuseguang.springcloud.entity;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author 
 * @since 2020-09-21
 */
@Entity
@Data
public class Orders {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
    /**
     * 商户订单号(唯一)
     */
	private String outTradeNo;
    /**
     * 用户id
     */
	private Integer userId;
    /**
     * 价格(给微信的金额)
     */
	private BigDecimal price;
    /**
     * 下单时间
     */
	private Date orderTime;
    /**
     * 支付完成时间
     */
	private Date timeEnd;
    /**
     * 0未完成,1支付失败,2支付成功
     */
	private Integer transactionStatus;
    /**
     * 0家长,1教师
     */
	private Integer type;
    /**
     * 原价
     */
	private BigDecimal originalPrice;
    /**
     * 商品id
     */
	private Integer commodityId;
    /**
     * 商品名称
     */
	private String commodityName;
	/**
	 * 失效时间
	 */
	private Date failureTime;


}
